import type { RouteRecordRaw } from "vue-router";
import Layout from "@/layout/index.vue";
import LayoutIframe from "@/layout/iframe.vue";
export const ExploitRouter: RouteRecordRaw = {
  path: "/exploit",
  name: "ExploitMain",
  meta: {
    hidden: false,
    icon: "SetUp",
    title: "menus.AppInfo"
  },
  component: Layout,
  children: [
    {
      path: "predev",
      name: "ExploitPredev",
      meta: {
        hidden: false,
        icon: "Reading",
        title: "menus.Predev",
        activeMenu: "ExploitPredev",
        tabTitle: "menus.Predev",
        iframeLink: "http://localhost:5173/",
        breadcrumbHide: true,
        allowRepeatTab: false
      },
      component: LayoutIframe
    },
    {
      path: "version/:tagId",
      name: "ExploitVersion",
      meta: {
        hidden: false,
        icon: "Document",
        title: "menus.Version",
        activeMenu: "ExploitVersion",
        tabTitle: "menus.Version",
        allowRepeatTab: true,
        // noCache: true,
        breadCrumb: [
          { path: "", meta: { title: "menus.AppInfo" }, noTo: true },
          { path: "/exploit/predev", meta: { title: "menus.Predev" } },
          { path: "/exploit/version", meta: { title: "menus.Version" }, noTo: true }
        ]
      },
      component: () => import("@/views/exploit/version.vue")
    }
  ]
};
